package com.zyl.service.Impl;

import com.zyl.Mapper.FriendMapper;
import com.zyl.pojo.FriendLink;
import com.zyl.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Zyl
 * @Param:
 * @return:
 * @Description:
 */
@Service
public class FriendServiceImpl implements FriendService {
    @Autowired
    private FriendMapper friendMapper;
    @Override
    public List<FriendLink> findAll() {
        return friendMapper.findAll();
    }

    @Override
    public FriendLink findFriendLinkById(Integer id) {
        return friendMapper.findFriendLinkById(id);
    }

    @Override
    public void updateFriendLink(FriendLink friendLink) {
        friendMapper.UpdateFriendLink(friendLink);
    }

    @Override
    public void insertFriendLink(FriendLink friendLink) {
        friendMapper.insertFriendLink(friendLink);
    }

    @Override
    public void deleteFriendLinkById(Integer id) {
        friendMapper.deleteFriendLinkById(id);
    }

    @Override
    public Integer friendLinkCount() {
        return friendMapper.friendLinkCount();
    }
}
